<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('brand/brand')}">品牌列表</a></li>
			<li><a href="{:url('brand/addbrand')}">添加品牌</a></li>
		</ul>
		<form action="" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th width="60" align="left">品牌名</th>
						<th width="60" align="left">状态</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="brand" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<if condition="$vo['status'] eq 1">
							<td>开启</td>
						<else/>
							<td>关闭</td>
						</if>
						<td>
						<a href="{:url('brand/updatebrand',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
						<!--<a class="js-ajax-delete" href="{:url('StoreCat/branddel',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>-->
						<a href="{:url('Goods/index',array('id'=>$vo['id']))}">商品列表</a>
						<a  href="{:url('goodstable/goodsadd',array('id'=>$vo['id']))}">添加商品</a>
					</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>